<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>计算属性的简写方式</title>
</head>
<body>
  <div id="root">
      {{fullName}}
  </div>


<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
<script>

    new Vue({
        el:'#root',
        data:{
            firstname: "Alice",
            lastName: "Jack"
        },

        computed:{
            fullName(){
                return this.firstname+this.lastName
            }
        }
    })


</script>
</body>
</html>